<%@ page language="java" pageEncoding="UTF-8"%>



<div class="control-group">
	<table>
		<thead>
			<th width="10%">编号</th>
			<th width="10%">名称</th>
			<th width="15%">图片(APP)</th>
			<th width="15%">图片(PC)</th>
			<th width="5%">售价</th>
			<th width="25%">描述</th>
			<th width="5%">营养值</th>
			<th width="15%">标签</th>
			<th width="5%">状态</th>
			<th width="5%">顺序</th>
			<th width="10%">操作</th>
		</thead>
		<tbody id="food_drink_list">
			<tr>
				<td width="10%">td1</td>
				<td width="10%">td2</td>
				<td width="15%">td3</td>
				<td width="5%">td4</td>
				<td width="25%">td5</td>
				<td width="5%">td6</td>
				<td width="15%">td7</td>
				<td width="5%">td8</td>
				<td width="10%">td9</td>
				<td width="10%">td10</td>
				<td width="10%">td11</td>
			</tr>
		</tbody>
	</table>
	<button id="new_drink" type="button" class="btn btn-primary" onclick="newdrink();" data-toggle="button">新建</button>
</div>
<style>
.text-right {
	text-align: right;
	width: 8%;
	padding-right: 2px;
}

td {
	padding: 10px;
}

input.radio-margin0 {
	margin: 0;
}

#title {
	margin: 0;
	width: 50%;;
}

#abs {
	height: 60px;
	width: 52%;
}

#detail {
	height: 240px;
	width: 90%;
}

span {
	padding: 0 10px 0 5px;
	vertical-align: middle;
}

.inputsize {
   height: 16px;
   width: 90px;
}
.halfinputsize {
   height: 16px;
   width: 45px;
}
</style>

<script type="text/javascript">
function newdrink()
{
	window.showModalDialog("food/food-new.do?type=2");
	_refresh();
}
function _food_mod(foodid)
{
	window.showModalDialog("food/food-mod.do?foodid="+foodid);
	_refresh();
}
function _refresh()
{
	require(['admin-food'], function(food) {
		food.init();
	});
}
require(['admin-food'], function(food) {
	food.init();
});
</script>
